package org.six.background.service;

import org.six.background.pojo.User;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;


public interface AccountService {
    int count();
    Map userAll(int page, int pagesize);
    String insert(User user);
    String updateus(int usid,String usname,String usphone,String uscard);
    String updatetp(MultipartFile file,HttpServletRequest request);
    String toux(int usid);
    String uspass(HttpServletRequest request,int usid,String uspass, String newurl,String oldurl);

    //    User user=new User();
    //    user.setUsimg(newurl);
    //    System.out.println("密码为空"+user.getUsimg());
    //    userMapper.updateByPrimaryKeySelective(user);
    String uspass(HttpServletRequest request, int usid, String newurl, String oldurl);

    String uspass(int usid, String uspass);
}
